<template>
  <div class="ceshiZia">
    <h1>ziaaaaaaaaaaaaaaaaaaaa</h1>
    <!-- 逆向传值 -->
    <button @click="fun()">点我向Fu组件传值</button>
    <button @click="funa()">点我传值给Zib</button>
  </div>
</template>
<script>
import Eventbus from "@/eventbus"
export default {
  data() {
    return {
      Zitexta: "我是Zia的数据",
    };
  },
  methods: {
    fun() {
      this.$emit("chuanzhi", this.Zitexta);
    },
    funa() {
      Eventbus.$emit("zia","我是子a的数据么么哒！！")
    },
  },
};
</script>
<style scoped>
</style>
